import server from '@/utils/request.js'

export default {
    //全部商品数据
    getShopList(data={}){
        return server({
            url:'/api/product/getCategory',
            method:'POST',
            data:data
        })
    },
    //商品分类
    getProductByCategory(data={}){
        // return server.post('product/getProductByCategory',data={})
        return server({
            url:'/api/product/getProductByCategory',
            method:'POST',
            data:data
        })
    },
    //全部商品
    getAllProduct(data={}){
        return server({
            url:'/api/product/getAllProduct',
            method:'POST',
            data:data
        })
    },
    //搜索商品
    getSearch(data={}){
        return server({
            url: "/api/product/getProductBySearch",
            method: "POST",
            data: data
        })
    },
    //更多商品
    getLcData(data={}){
        return server({
            url: "/product/getProductByCategory",
            method: "POST",
            data: data
        })
    },

}